<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/context/commonTags.jsp"%>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding: 1px;">
		<t:datagrid name="userList" title="单表模型" actionUrl="/mainController?user" idField="id" fit="true" queryMode="group">
			<t:dgCol title="编号" field="id" hidden="false"></t:dgCol>
			<t:dgCol title="年龄" field="username" query="true" extend="{data-options:{required:false,groupSeparator:\"','\"},class:{value:'easyui-numberbox'}}"></t:dgCol>
			<t:dgCol title="用户名" field="salt" query="true" extend="{style:{width:'300px'}}"></t:dgCol>
 			<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
 			<t:dgDelOpt title="删除" url="/mainController?del&id={id}" />
			<t:dgToolBar title="录入" icon="icon-add" url="/mainController?addorupdate" funname="add"></t:dgToolBar>
			<t:dgToolBar title="编辑" icon="icon-edit" url="/mainController?addorupdate" funname="update"></t:dgToolBar>
		</t:datagrid>
	</div>
</div>